import { Get, Post } from '@/utils/axios/request'

const prefix = '/v1/video'
export const _getRandomVideo = (params: any) => {
	return Get(prefix + '/random', params)
}

export const _getVideo = (params: any, videoID: string) => {
	return Get(prefix + `/${videoID}`, params)
}

export const _getVideos = (params: any) => {
	return Post(prefix + '/list', params)
}

export const _createVideo = (params: any) => {
	return Post(prefix + '/', params, 2)
}
